
#ifndef   __INPUTS_H_
#define   __INPUTS_H_



/* state of inputs */
typedef struct _INPUTS_STATE 
{
		unsigned 	INP_1		: 	1;
		unsigned 	INP_2   	: 	1;	    	
		unsigned 	INP_3   	: 	1;
		unsigned 	INP_4   	: 	1;
		unsigned 	INP_5   	: 	1;
		unsigned 	INP_6   	: 	1;
		unsigned 	INP_7   	: 	1;
		unsigned 	INP_8		: 	1;
	
}INPUTS_STATE;

/* enum */
/* { */
/* 	INP_0_DOWN = 2, */
/* 	INP_0_UP, */

/* 	INP_1_DOWN, */
/* 	INP_1_UP, */

/* 	INP_2_DOWN, */
/* 	INP_2_UP, */

/* 	INP_3_DOWN, */
/* 	INP_3_UP, */

/* 	INP_4_DOWN, */
/* 	INP_4_UP, */
	
/* 	INP_AMOUNT */
/* }; */


#define   INPUT_1		1
#define   INPUT_2		2


/* enum */
/* {										   */
/* 	INPUT_1_UP = 0x81,			  /\* if BIT7 is SET - INPUT was UP *\/ */
/* 	INPUT_2_UP, */
/* 	INPUT_3_UP, */
/* 	INPUT_4_UP, */
/* 	INPUT_5_UP */
/* }; */

/* enum */
/* { */
/* 	INPUT_1_DOWN = 0x01,			/\* if BIT7 is CLEAR - INPUT was DOWN *\/ */
/* 	INPUT_2_DOWN, */
/* 	INPUT_3_DOWN, */
/* 	INPUT_4_DOWN, */
/* 	INPUT_5_DOWN */
/* }; */




//extern INPUTS near Inputs_State;			  /* State of keys */
extern unsigned char InputsEvent;		  /* Name of key which was pressed  */
extern INPUTS_STATE InputsState;			  /* events of HOOKSET and SIM_SWITCH */

void Drive_Inputs ( void );
void Inputs_Init ( void );

#endif



